package com.lanou3g.baidumusic.main.mainactivity;

import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.lanou3g.baidumusic.R;
import com.lanou3g.baidumusic.main.playactivity.PlayActivity;

public class MainActivity extends AppCompatActivity {

    private MusicService.MusicBinder musicBinder ;


    private ImageView playIv ;
    private ImageView musicPicIv ;
    private TextView songNameTv ;
    private TextView contentTv ;
    private LinearLayout linearLayout ;
    private View view ;

    private FragmentTransaction transaction ;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        playIv = (ImageView) findViewById(R.id.activity_main_play_iv);
        musicPicIv = (ImageView) findViewById(R.id.activity_main_pic_iv);
        songNameTv = (TextView) findViewById(R.id.activity_main_title_tv);
        contentTv = (TextView) findViewById(R.id.activity_main_content_tv_);
        linearLayout = (LinearLayout) findViewById(R.id.activity_main_ll);
        view = findViewById(R.id.activity_main_fragment);

        //点击播放
        playIv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {


            }
        });
        //图片跳转
        musicPicIv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent intent = new Intent(MainActivity.this , PlayActivity.class);
                startActivity(intent);
            }
        });
        //文字布局跳
        linearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent intent = new Intent(MainActivity.this , PlayActivity.class);
                startActivity(intent);
            }
        });


    }


    //解绑
    @Override
    protected void onDestroy() {
        super.onDestroy();


    }
}
